﻿
namespace EasyNet.Solr
{
    using System.Collections.Generic;
    using System.Data;

    /// <summary>
    /// 数据转换器接口
    /// </summary>
    /// <typeparam name="T">转换后的数据类型</typeparam>
    public interface IDbDataConvert<T>
    {
        /// <summary>
        /// 转换
        /// </summary>
        /// <param name="dataReader">数据读取器</param>
        /// <returns>T类型数据迭代器</returns>
        IEnumerable<T> Convert(IDataReader dataReader);
    }
}
